<?php defined('SYSPATH') or die('No direct access allowed.');

abstract class Auth extends Kohana_Auth {

    public static function hasRoles( $roles=array() ){
        $user_model = self::getCurrent();
        return $user_model->hasRoles($roles);
    }
    
    public static function getCurrent(){
        $user_model = self::instance()->get_user();
        return $user_model;
    }
    
    public static function getCurrentUserId(){
        return self::getCurrent()->id;
    }

}